#ifndef __MCU_H
#define __MCU_H

#define  MS		1 /*10ms */
#define  MS_20		(MS) * 2
#define  MS_50		(MS) * 5
#define   MS_100	(MS) * 10
#define   MS_200	(MS) * 20
#define MS_300		(MS) * 30
#define  MS_500	(MS) * 50
#define  MS_1000	(MS) * 100
#define  MS_1500	(MS) * 150
#define  TWO_SECOND	(MS) * 200
#define  THREE_SECOND	(MS) * 300
#define   New_Rx_5V	P30
extern void vdInit_MCU_GPIO( void );
void vdDeInit_MCU_GPIO( void );

int vdChip_Init(void);
int vdClk_Stable_Config(void);

int vdTimer1_Delay10ms( void );
void vdTimer1_deinit( void );

extern void vdReset_Chip( FlagStatus status );


int vdMcu_SystemReset( void );


void Init_I2C(int i2c_bus);


int vStart_work(void);


extern void Error_Counter(void);
extern void vdPrintError(void);
int CLK_det(void);

#endif
